import request from '@/utils/request'

// 查询列表
export function listTutorial(query) {
  return request({
    url: '/tutorialController/pageData',
    method: 'get',
    params: query
  })
}

// 新增
export function addTutorial(data) {
  return request({
    url: '/tutorialController/add',
    method: 'post',
    data
  })
}
// 更新
export function updateTutorial(data) {
  return request({
    url: '/tutorialController/update',
    method: 'post',
    data
  })
}

// 删除
export function delTutorial(data) {
  return request({
    url: '/tutorialController/del/'+data,
    method: 'delete',
  })
}
// 详情
export function detailTutorial(data) {
  return request({
    url: '/tutorialController/detail',
    method: 'get',
    params : data
  })
}
